using UnityEngine;
using System.Collections;

public class MainMenu : MonoBehaviour 
{
	public Transform Menu;
	private	UIPanel MenuPanel;
	public Transform Credits;
		private UIPanel CreditPanel;
	//public UIPanel Menu;
	
	void Awake()
	{
		MenuPanel = Menu.GetComponent<UIPanel>();
		CreditPanel = Credits.GetComponent<UIPanel>();
	}
	// Use this for initialization
	void Start () 
	{
		
	}
	
	// Update is called once per frame
	void Update () 
	{
	
	}
	
	void Play()
	{
		MenuPanel.Dismiss();
		Messenger<string>.Invoke("human", "Player1");
		Messenger<string>.Invoke("human", "Player2");
		Messenger<string>.Invoke("alien", "Player3");
		Messenger<string>.Invoke("alien", "Player4");
	}
	void Options()
	{
		
		//ssm_Transition.dismiss();
		
	}
	void Exit()
	{
		Application.Quit();
	}
	void SoundOn()
	{
		Debug.Log(Input.GetJoystickNames());
		Messenger.Invoke("SoundOn");
	}
	void SoundOff()
	{
		Messenger.Invoke("SoundOff");
	}
	
}
